<include file="../Public/admintop" />
<include file="../Public/adminleft" />
<script type="text/javascript">
function delall(){
	var id=$('input:checkbox[name^=id]:checked').map(function(){
		return $(this).val();
	}).get().join(",");
	if(!id){
		alert('请选择要删除的项!');
	}else{
		$.post("{:U('Shipping/delete')}","id="+id);
		$('input[name^=id]:checked').parent().parent().remove();
	}
}
$(document).ready (
function(){
	//选中
	$('#check').click(function(){
		$('input[name^=id]').attr('checked',$(this).attr('checked'));
	});
	
}
);
</script>
<!-- Content (Right Column) -->
		<div id="content" class="box">

			<h1>配送方式</h1>
            <p class="msg info">提示：</p>
            <p class="left"><a href="{:U('Shipping/add')}">添加</a></p>
            <table width="100%">
				<tr>
				    <th style="text-align:center" width="7%"><input type="checkbox" id="check" /></th>
				    <th style="text-align:center" width="10%">名称</th>
				    <th style="text-align:center" width="7%">代码</th> 
				    <th style="text-align:center" width="7%">保险</th> 
				    <th style="text-align:center" width="7%">状态</th>
				    <th style="text-align:center" width="45%">介绍</th>                             
                    <th style="text-align:center" >操作</th>
				</tr>
                <volist name="list" id="vo">
                <tr>
                    <td style="text-align:left" ><input type="checkbox" name="id[]" value="{$vo.id}" /></td>
				    <td style="text-align:left" >{$vo.name}</td>
				    <td style="text-align:left" >{$vo.code}</td>
				    <td style="text-align:left" >{$vo.insure}</td>
				    <td style="text-align:left" >{:getStatus($vo["status"])}</td>
				    <td style="text-align:left" >{$vo.remark}</td>
                    
                    <td style="text-align:center" ><a href="{:u('Shipping_area/index',array('id'=>$vo['id']))}">设置区域</a>&nbsp;|&nbsp;<a href="{:u('Shipping/edit',array('id'=>$vo['id']))}">编辑</a>&nbsp;|&nbsp;<a  href="{:u('Shipping/Delete',array('id'=>$vo['id']))}" >移除</a></td>
                </tr>
                </volist>
				
			</table>
			
            <p class="t-right"></p>
		</div> <!-- /content -->
<include file="../Public/adminfooter" />